import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Properties;

/**
 * @program: qy158
 * @description:
 * @author: 闫克起2
 * @create: 2022-10-28 08:30
 **/
public class Test {
    public static void main(String[] args) throws Exception {
        Properties properties=new Properties();

        InputStream inputStream = ClassLoader.getSystemResourceAsStream("db.properties");
        properties.load(inputStream);

        String property = properties.getProperty("jdbc.username");
        System.out.println(property);
    }
}
